<template>
  <!-- 放映制式 -->
  <el-select v-model="type" size="small" @change="onChange" clearable>
    <el-option v-for="(item,index) in dataList" :key="index" :value="item.id" :label="item.name"></el-option>
  </el-select>
</template>
<script>
export default {
  model: {
    prop: 'value',
    event: 'change'
  },
  data () {
    return {
      value: null,
      type: null,
      dataList: [
        {
          id: '1',
          name: '1'
        },
        {
          id: '2',
          name: '2'
        }
      ]
    }
  },
  methods: {
    async getList () {},
    onChange (val) {
      this.$emit('change', val)
    }
  }
}
</script>
